package com.ricchieri.service;

import java.io.Serializable;
import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.ricchieri.dao.interf.IRoleDao;
import com.ricchieri.filter.BasicFilter;
import com.ricchieri.model.Role;
import com.ricchieri.service.interf.IRoleService;

@Transactional(readOnly = true)
public class RoleService implements IRoleService, Serializable {
	private static final long serialVersionUID = 799593205616372286L;
	IRoleDao roleDao;
	
	@Override
	@Transactional(readOnly = true)
	public List<Role> getAllRole() {
		BasicFilter filter = new BasicFilter();
		return roleDao.getAllRole(filter);
	}

	public IRoleDao getRoleDao() {
		return roleDao;
	}

	public void setRoleDao(IRoleDao roleDao) {
		this.roleDao = roleDao;
	}
}
